@charset "utf-8";

.layui-layout-admin {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    transition: all .3s ease;

    .layui-side {
        position: absolute;
        top: 50px;
        width: 220px;
        background-color: #24262f;
        -webkit-transition: all .3s;
        transition: all .3s;
        box-shadow: 1px 0 2px 0 rgba(0, 0, 0, .05);
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        z-index: 999;

        .layui-side-scroll {
            width: 240px;
            transition: all .3s;
            -webkit-transition: all .3s;

            .layui-nav {
                width: 220px;
                background-color: transparent;

                .layui-nav-item {
                    &>a {
                        padding-top: 5px;
                        padding-bottom: 5px;
                        cursor: pointer;

                        &:hover {
                            background: rgba(255, 255, 255, .03);
                        }

                        &>cite {
                            padding-left: 10px;
                        }
                    }

                    a {
                        -webkit-transition: color .3s, background-color .3s;
                        transition: color .3s, background-color .3s;
                    }

                    &>.layui-nav-child {
                        position: static;

                    }

                    .layui-nav-child {
                        a {
                            padding-left: 50px;
                            cursor: pointer;
                        }

                        .layui-nav-child {
                            a {
                                padding-left: 70px;
                            }

                            .layui-nav-child {
                                a {
                                    padding-left: 90px;
                                }

                                .layui-nav-child {
                                    a {
                                        padding-left: 110px;
                                    }
                                }
                            }
                        }
                    }
                }

                .layui-nav-more {
                    right: 15px;
                }
            }
        }
    }
}

@media screen and (min-width: 768px) {
    .layui-layout-admin {
        &.admin-nav-mini {

            /* toubu */
            .top-header {
                .top-logo {
                    width: 60px;

                    cite {
                        display: none;
                    }
                }
            }

            /* zuoce */
            .layui-side {
                width: 60px;

                .layui-nav {
                    width: 60px;

                    .layui-nav-item {
                        &>a {
                            overflow: visible;

                            &>.layui-icon {
                                font-size: 16px;
                                transition: font-size .3s;
                                -webkit-transition: font-size .3s;
                            }

                            &>cite {
                                display: none;
                            }

                            .layui-nav-more {
                                display: none;
                            }
                        }
                    }

                    li {
                        &.layui-nav-itemed {
                            &>a {
                                background: rgba(0, 0, 0, .3);
                            }
                        }
                    }

                    .layui-nav-itemed {
                        .layui-nav-child {
                            display: none !important;
                        }
                    }

                    .admin-nav-hover {
                        &>.layui-nav-child {
                            position: fixed;
                            top: 60px;
                            left: 60px;
                            background: transparent !important;
                            min-width: 150px;
                            padding: 5px;
                            display: block !important;

                            &:before {
                                content: '';
                                position: absolute;
                                left: 5px;
                                right: 5px;
                                top: 0;
                                bottom: 0;
                                background: #24262f;
                                border-radius: 4px;
                                box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);
                            }

                            dd {
                                &:first-child {
                                    &>.layui-nav-child {
                                        margin-top: -5px;
                                    }
                                }

                                &:last-child {
                                    &>.layui-nav-child {
                                        &.show-top {
                                            margin-top: 5px;
                                        }
                                    }
                                }
                            }

                            &>dd {
                                &>a {
                                    padding: 0 20px !important;

                                    .layui-nav-more {
                                        border-color: transparent transparent transparent rgba(255, 255, 255, .7);
                                        right: 7px;
                                        margin-top: -6px;
                                    }
                                }
                            }
                        }

                    }

                    &.arrow2 {
                        .admin-nav-hover {
                            &>.layui-nav-child {
                                &>dd {
                                    &>a {
                                        .layui-nav-more {
                                            -o-transform: rotate(0deg);
                                            -ms-transform: rotate(0deg);
                                            -moz-transform: rotate(0deg);
                                            -webkit-transform: rotate(0deg);
                                            transform: rotate(0deg);
                                            width: 6px;
                                            height: 10px;
                                            margin-top: -5px;
                                            right: 10px;
                                            font-weight: 600;

                                            &:before {
                                                content: "\e602";
                                                left: -4px;
                                                top: -2px;
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }

                    &.arrow3 {
                        .admin-nav-hover {
                            &>.layui-nav-child {
                                &>dd {
                                    &>a {
                                        .layui-nav-more {
                                            -o-transform: rotate(0deg);
                                            -ms-transform: rotate(0deg);
                                            -moz-transform: rotate(0deg);
                                            -webkit-transform: rotate(0deg);
                                            transform: rotate(0deg);
                                            width: 6px;
                                            height: 10px;
                                            margin-top: -5px;
                                            right: 10px;
                                            font-weight: 600;

                                            &:before {
                                                content: "\e602";
                                                left: -4px;
                                                top: -2px;
                                                -o-transform: rotate(0deg);
                                                -ms-transform: rotate(0deg);
                                                -moz-transform: rotate(0deg);
                                                -webkit-transform: rotate(0deg);
                                                transform: rotate(0deg);
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }

            }

            .layui-side-scroll {
                width: 80px;
            }

            // 主体
            .layui-body {
                left: 60px;
            }
        }
    }

    .ew-anim-drop-in {
        -webkit-animation: ewTransitionDropIn .3s ease-in-out;
        animation: ewTransitionDropIn .3s ease-in-out;
        transform-origin: 0 0
    }

    @-webkit-keyframes ewTransitionDropIn {
        from {
            opacity: 0;
            transform: scale(0.8)
        }

        to {
            opacity: 1;
            transform: scale(1)
        }
    }

    @keyframes ewTransitionDropIn {
        from {
            opacity: 0;
            transform: scale(0.8)
        }

        to {
            opacity: 1;
            transform: scale(1)
        }
    }
}

@media screen and (max-width: 768px) {
    .layui-layout-admin {
        left: -220px;
    }

    .layui-layout-admin.admin-nav-mini {
        left: 0;
        right: -220px;
    }

    .layui-layout-admin.admin-nav-mini .layui-body {
        left: 220px;
    }

    .layui-layout-admin.admin-nav-mini .site-mobile-shade {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 220px;
        right: 0;
        background-color: rgba(0, 0, 0, 0.25);
        transition: background-color 0.3s;
        z-index: 10001;
        cursor: pointer;
    }

    .layui-layout-admin .site-tree-mobile {
        display: block !important;
        position: fixed;
        z-index: 999;
        bottom: 15px;
        left: 15px;
        width: 40px;
        height: 40px;
        line-height: 40px;
        border-radius: 2px;
        text-align: center;
        background-color: rgba(0, 0, 0, 0.7);
        color: #fff;
        z-index: 998;
    }
}